﻿using System;
using GeoAPI.Geometries;

namespace NetTopologySuite.Geometries
{
	[Obsolete("No longer used")]
	[Serializable]
	public class DefaultCoordinateSequenceFactory : ICoordinateSequenceFactory
	{
		private DefaultCoordinateSequenceFactory()
		{
		}

		private object ReadResolve()
		{
			return DefaultCoordinateSequenceFactory.Instance;
		}

		public static DefaultCoordinateSequenceFactory Instance
		{
			get
			{
				return DefaultCoordinateSequenceFactory.instance;
			}
		}

		public ICoordinateSequence Create(Coordinate[] coordinates)
		{
			return new DefaultCoordinateSequence(coordinates);
		}

		public ICoordinateSequence Create(ICoordinateSequence coordSeq)
		{
			throw new NotImplementedException();
		}

		public ICoordinateSequence Create(int size, int dimension)
		{
			throw new NotImplementedException();
		}

		public ICoordinateSequence Create(int size, Ordinates ordinates)
		{
			throw new NotImplementedException();
		}

		public Ordinates Ordinates
		{
			get
			{
				return Ordinates.XYZ;
			}
		}

		private static readonly DefaultCoordinateSequenceFactory instance = new DefaultCoordinateSequenceFactory();
	}
}
